package com.net.retrofits.use.manager.push;


import com.net.retrofits.use.req.push.HWPushReq;
import com.net.retrofits.use.res.UseResultObject;
import com.net.retrofits.use.res.push.HWPushResult;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.Path;


/**
 * Created by Administrator on 2016/9/7.
 */
public interface HWPushApi {

    @POST("./")
    Call<UseResultObject<HWPushResult>> loginIn(@HeaderMap Map<String, String> map, @Body HWPushReq res);

    @POST("https://push-api.cloud.huawei.com/v1/{appid}/messages:send")
    Call<UseResultObject<HWPushResult>> push(@Path("appid") String appid,
                                             @HeaderMap Map<String, String> map, @Body HWPushReq res);




    @POST("https://oauth-login.cloud.huawei.com/oauth2/v3/token")
    Call<UseResultObject<HWPushResult>> poshToken(@HeaderMap Map<String, String> map, @Body HWPushReq res);

}

